{
  "model": {
    "type": "minecraft:condition",
    "property": "minecraft:component",
    "predicate": "minecraft:stored_enchantments",
    "value": [
      {
        "enchantments": "#enchantencore:curse",
        "levels": 1
      }
    ],
    "on_true": {
      "type": "minecraft:model",
      "model": "enchantencore:item/enchanted_book_curse"
    },
    "on_false": {
      "type": "minecraft:condition",
      "property": "minecraft:component",
      "predicate": "minecraft:stored_enchantments",
      "value": [
        {
          "enchantments": "#enchantencore:enchantments",
          "levels": 1
        }
      ],
      "on_true": {
        "type": "minecraft:model",
        "model": "enchantencore:item/enchanted_book_1"
      },
      "on_false": {
        "type": "minecraft:condition",
        "property": "minecraft:component",
        "predicate": "minecraft:stored_enchantments",
        "value": [
          {
            "enchantments": "#enchantencore:enchantments",
            "levels": 2
          }
        ],
        "on_true": {
          "type": "minecraft:model",
          "model": "enchantencore:item/enchanted_book_2"
        },
        "on_false": {
          "type": "minecraft:condition",
          "property": "minecraft:component",
          "predicate": "minecraft:stored_enchantments",
          "value": [
            {
              "enchantments": "#enchantencore:enchantments",
              "levels": 3
            }
          ],
          "on_true": {
            "type": "minecraft:model",
            "model": "enchantencore:item/enchanted_book_3"
          },
          "on_false": {
            "type": "minecraft:condition",
            "property": "minecraft:component",
            "predicate": "minecraft:stored_enchantments",
            "value": [
              {
                "enchantments": "#enchantencore:enchantments",
                "levels": 4
              }
            ],
            "on_true": {
              "type": "minecraft:model",
              "model": "enchantencore:item/enchanted_book_4"
            },
            "on_false": {
              "type": "minecraft:condition",
              "property": "minecraft:component",
              "predicate": "minecraft:stored_enchantments",
              "value": [
                {
                  "enchantments": "#enchantencore:enchantments",
                  "levels": 5
                }
              ],
              "on_true": {
                "type": "minecraft:model",
                "model": "enchantencore:item/enchanted_book_5"
              },
              "on_false": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_book"
              }
            }
          }
        }
      }
    }
  }
}